package thinkinginjava.IO;

import java.io.File;
import java.io.FilenameFilter;

public class FileDir {
	public static void main(String[] args) {
		File file = new File(".");
		for(String fileName : file.list(new FilenameFilter(){

			@Override
			public boolean accept(File dir, String name) {
				return name.contains("s");
			}
			
		})) {
			System.out.println(fileName);
		}
	}
}
